$def with (ia, record, books)
$# e.g. /show-records/ia:isbn_9781555531799
$ title = "MARC record from Internet Archive"

$var title: $title

<div id="contentHead">
    $if len(books):
        $ e = get_document(books[0])
        <div class="breadcrumbs"><a href="$e.key">$e.title</a> /</div>
    <h1>$title</h1>
</div>
<div id="contentBody">
    <div class="section">
        <table class="meta">
            <tbody>
                <tr>
                    <td class="title"><span class="title">Record ID</span></td>
                    <td><span class="object">ia:$ia</span></td>
                </tr>
                <tr>
                    <td class="title"><span class="title">Source</span></td>
                    <td><span class="object"><a href="//archive.org/details/$ia">Internet Archive</a></span></td>
                </tr>
                <tr>
                    <td class="title"><span class="title">Download MARC XML</span></td>
                    <td><span class="object"><a href="https://archive.org/download/$ia/$(ia)_marc.xml">https://archive.org/download/$ia/$(ia)_marc.xml</a></span></td>
                </tr>
                <tr>
                    <td class="title"><span class="title">Download MARC binary</span></td>
                    <td><span class="object"><a href="https://archive.org/download/$ia/$(ia)_meta.mrc">https://www.archive.org/download/$ia/$(ia)_meta.mrc</a></span></td>
                </tr>
            </tbody>
        </table>
    </div>

    $if not record:
        <p>$_("Invalid MARC record.")</p>
    $else:
        <p><b>LEADER:</b> <code>$record.leader</code><br/>
        $:record.html()</p>
</div>